package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;
/**
 * 
 * @ClassName: MrqDictRules  
 * @Description ：病案首页检查规则表    
 * @Date: 2018年7月26日 下午3:31:45  
 * @Author QiaoYiLong 
 * @Version 3.1.1 DHC-DRG
 */
@Entity
@Table(name="MRQ_DICT_RULES", schema = "DRGs")
public class MrqDictRules extends KoalaLegacyEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7258326719059447586L;
	
	public MrqDictRules(){
		super();
	}

	//病案首页校验规则代码	
	@Id
	@Column(name = "RULE_CODE",nullable=false)
	private String ruleCode;
	
	//明细项目分数字典表对应的主键	
	@Column(name = "DETAIL_CODE",nullable=false)
	private String detailCode;

	//得分权重编码	
	@Column(name = "WEIGHT_CODE",nullable=false)
	private String weightCode;
	
	//四大类检查项目编码	
	@Column(name = "SCORE_CODE",nullable=false)
	private String scoreCode;
	
	//病案首页校验规则名称	
	@Column(name = "RULE_NAME")
	private String ruleName;
	
	//规则说明	
	@Column(name = "RULE_INTRODUCTION")
	private String ruleIntroduction;
	
	//完整性标识	
	@Column(name = "COMPLETE_FLAG")
	private String completeFlag;
	
	//有效标志(1是有效，0为无效)	
	@Column(name = "VALID_FLAG")
	private String validFlag;
	
	//首页字段名	
	@Column(name = "MEDICALRECORD_FIELD")
	private String medicalRecordField;
	
	//该规则应该扣多少分	
	@Column(name = "RULE_SCORE")
	private Double ruleScore;
	
	public String getRuleCode() {
		return ruleCode;
	}

	public void setRuleCode(String ruleCode) {
		this.ruleCode = ruleCode;
	}

	public String getDetailCode() {
		return detailCode;
	}

	public void setDetailCode(String detailCode) {
		this.detailCode = detailCode;
	}

	public String getWeightCode() {
		return weightCode;
	}

	public void setWeightCode(String weightCode) {
		this.weightCode = weightCode;
	}

	public String getScoreCode() {
		return scoreCode;
	}

	public void setScoreCode(String scoreCode) {
		this.scoreCode = scoreCode;
	}

	public String getRuleName() {
		return ruleName;
	}

	public void setRuleName(String ruleName) {
		this.ruleName = ruleName;
	}

	public String getRuleIntroduction() {
		return ruleIntroduction;
	}

	public void setRuleIntroduction(String ruleIntroduction) {
		this.ruleIntroduction = ruleIntroduction;
	}

	public String getCompleteFlag() {
		return completeFlag;
	}

	public void setCompleteFlag(String completeFlag) {
		this.completeFlag = completeFlag;
	}

	public String getValidFlag() {
		return validFlag;
	}
	public void setValidFlag(String validFlag) {
		this.validFlag = validFlag;
	}
	public String getMedicalRecordField() {
		return medicalRecordField;
	}
	public void setMedicalRecordField(String medicalRecordField) {
		this.medicalRecordField = medicalRecordField;
	}
	@Override
	public Serializable getId() {
		return ruleCode;
	}

	@Override
	public String[] businessKeys() {
		// TODO Auto-generated method stub
		return null;
	}
	
	public Double getRuleScore() {
		return ruleScore;
	}
	public void setRuleScore(Double ruleScore) {
		this.ruleScore = ruleScore;
	}

	
}
